package com.schoolhostptail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolhostptail.entity.Student;
import com.schoolhostptail.entity.view.StudentModel;
import com.schoolhostptail.qpage.QPage;
import com.schoolhostptail.util.Result;

import java.util.List;

/**
 * 学生接口层
 */
public interface IStudentService extends IService<Student> {

    /**
     * 列表分页
     * @param qPage
     * @param obj
     * @return
     */
    IPage getList(QPage qPage, Student obj);

    /**
     * 新增
     * @param obj
     * @return
     */
    Result insert(Student obj);

    /**
     * 修改
     * @param obj
     * @return
     */
    Result updates(Student obj);

    /**
     * 删除
     * @param id
     * @return
     */
    Result deleteId(Integer id);

    /**
     * 导入学生
     * @param ulist
     * @return
     */
    Result importExcel(List<StudentModel> ulist);

}

